<!DOCTYPE html>
<head>
  <link href="css/bootstrap.css" media="screen" rel="stylesheet" />
  <script src='js/libs/jquery-1.10.2.js'></script>
  <script src='js/libs/handlebars-1.1.2.js'></script>
  <style>
      div {border: solid blue 1px;}
  </style>
</head>
<body>
<script>
    var re = $.post( "server/process.php", { action: 'find', class: 'user', field: 'username', data: 'admin@some.com' });
    re.done(function (data) {
        $("#t1").html(data);
    });

    var re = $.post( "server/process.php", { action: 'find', class: 'user', field: 'id', data: 2 });
    re.done(function (data) {
        $("#t2").html(data);
    });

    
var re = $.post( "server/process.php", { action: 'find', class: 'user', field: 'id', data: 1 }, "json");
re.done(function( data ) {
    var content = $.parseJSON(data);
    $( "#j1" ).empty().append( data);//content['token'] );
});

</script>
Results below:
<div><p id="j1">xx</p></div>
<div><p id="t1">t1</p></div>
<div><p id="t2">t2</p></div>
</body>